$def with (page)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>

$if 'title' in page and page.title:
    $if 'slogan' in page and page.slogan:
        <title>$page.title - $page.slogan</title>
    $else:
        <title>$page.title - piggymail webmail system</title>
$else:
    $if 'slogan' in page and page.slogan:
        <title>$page.slogan</title>
    $else:
        <title>piggymail webmail system</title>

<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="webmail piggymail python webpy imap smtp" />
<meta name="Description" content="piggymail webmail system" />
<meta name="Author" content="Yong Liu" />

</head>

<body>

$:page

</body>
</html>
